<{if $errorMsg}>
    <div style="text-align:center;color:red;">
        <span><{$errorMsg}></span>
    </div>
<{else}>
<div style="background:#F5F4EC; border:1px solid #E5DDC7;overflow:auto;height:400px;" class="FormWrap">
    <{if $logistic}>
        <h4>运单状态</h4>
        <div class="division">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data">
                <tr>
                  <th width="25%"><{t}>状态：<{/t}></th>
                  <td style="color:#F60;">
                    <{if $logistic.status eq 'progress'}>
                    运输中
                    <{elseif $logistic.status eq 'timeout'}>
                    超时
                    <{elseif $logistic.status eq 'failed'}>
                    运输失败
                    <{elseif $logistic.status eq 'cancel'}>
                    已取消
                    <{elseif $logistic.status eq 'lost'}>
                    货物丢失
                    <{elseif $logistic.status eq 'succ'}>
                    成功到达(已签收)
                    <{/if}>
                </td>
                  <th width="25%"><{t}>状态描述：<{/t}></th>
                  <td width="25%">
                    <span><{$logistic.status_description}></span>
                  </td>
                </tr>
            </table>
        </div>
        <h4>基本信息</h4>
        <div class="division">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data">
                <tr>
                  <th width="25%"><{t}>目的城市：<{/t}></th>
                  <td width="25%">
                    <span><{$logistic.ship_area|region}></span>
                  </td>
                  <th width="25%"><{t}>承运方式：<{/t}></th>
                  <td width="25%">
                    <span><{$logistic.delivery}></span>
                  </td>
                </tr>
                <tr>
                  <th width="25%"><{t}>提货方式：<{/t}></th>
                  <td colspan="3">
                    <span><{$logistic.goods_pick_method}></span>
                  </td>
                </tr>
            </table>
        </div>
        <h4>到达信息</h4>
        <div class="division">
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle data">
                <tr>
                  <th width="25%"><{t}>提货点名称：<{/t}></th>
                  <td width="25%">
                    <span><{$logistic.ship_company_name}></span>
                  </td>
                  <th width="25%"><{t}>提货人姓名：<{/t}></th>
                  <td width="25%">
                    <span><{$logistic.ship_name}></span>
                  </td>
                </tr>
                <tr>
                  <th width="25%"><{t}>提货人电话：<{/t}></th>
                  <td colspan="3">
                    <span><{$logistic.ship_tel}></span>
                  </td>
                </tr>
                <tr>
                  <th width="25%"><{t}>提货人地址：<{/t}></th>
                  <td colspan="3">
                    <span><{$logistic.ship_addr|escape:'html'}></span>
                  </td>
                </tr>
            </table>
        </div>

        <h4><{t}>货品信息<{/t}></h4>
        <{if $logiItems}>
            <div>
                <{foreach from=$logiItems key=key item=item}>
                    <div class="division">
                        <table width="100%" cellspacing="0" cellpadding="0" class="liststyle data">
                          <tr>
                            <th width="25%"><{t}>货品名称：<{/t}></th>
                            <td width="25%"><{$item.goods_name}></td>
                            <th width="25%"><{t}>货品数量：<{/t}></th>
                            <td width="25%"><{$item.goods_num}></td>
                          </tr>
                          <tr>
                            <th width="25%"><{t}>货品重量：<{/t}></th>
                            <td width="25%"><{$item.goods_weight}></td>
                            <th width="25%"><{t}>货品体积：<{/t}></th>
                            <td width="25%"><{$item.goods_volume}></td>
                          </tr>
                        </table>
                    </div>
                <{/foreach}>
            </div>
        <{else}>
            <span style="text-align:center;">没有相关货品信息！</span>
        <{/if}>

        <h4>跟踪信息</h4>
        <{if $data}>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="liststyle">
                <col class="span-5" />
                <col class="span-auto" />
                <!--<col class="span-3" />-->
                <thead>
                    <tr>
                        <th>操作时间</th>
                        <th>操作信息</th>
                        <!--<th>操作人</th>-->
                    </tr>
                </thead>
                <tbody>
                    <{foreach from=$data item=item key=key}>
                        <tr <{if $item.status eq 'succ'}>style="color:#F60;"<{/if}>>
                            <td><{$item.op_time|cdate:"FDATE_FTIME"}></td>
                            <td><{$item.op_msg}></td>
                            <!--<td><{$item.op_user}></td>-->
                        </tr>
                    <{/foreach}>
                </tbody>
            </table>
        <{else}>
            <span style="text-align:center;">没有相关跟踪信息！</span>
        <{/if}>
    <{else}>
        <div style="text-align:center;">
            <span style="text-align:center;">没有快件相关信息！</span>
        </div>
    <{/if}>
</div>
<{/if}>